package com.RLFZ.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * (user)实体类
 *
 * @author zh
 * @since 2022-08-25 17:16:58
 * @description 
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("user")
public class User extends Model<User> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id",type = IdType.AUTO)
	private Integer id;
    /**
     * username
     */
    private String username;
    /**
     * password
     */
    private String password;
    /**
     * sex
     */
    private String sex;
    /**
     * age
     */
    private Integer age;
    /**
     * address
     */
    private String address;
    /**
     * img
     */
    private String img;
    /**
     * phone
     */
    private String phone;
    /**
     * card
     */
    private String card;
    /**
     * banJiId
     */
    private Integer banJiId;
    /**
     * xueYuanId
     */
    private Integer xueYuanId;
    /**
     * teacherId
     */
    private Integer teacherId;
    /**
     * name
     */
    private String name;
    /**
     * salt
     */
    private String salt;

    //非数据库列 班级名字

    @TableField(exist = false)
    private String banJiName;
    //非数据库列 班级名字

    @TableField(exist = false)
    private String xueYuanName;
    //非数据库列 班级名字

    @TableField(exist = false)
    private String teacherName;




}